<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>ajax_learning</title>
    <script type="text/javascript">
        window.onload = function () {
            var btn = document.getElementById("btn");
            btn.onclick = function () {
                var h1 = document.getElementById("h1");
                h1.innerHTML="successfully clicking, on my god !  ";
            }
        };
    </script>
</head>
<body>
    <button id="btn">click here</button>
    <h1 id="h1"></h1>
</body>
</html>
